New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mailosaur

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailosaur

The Mailosaur Node library lets you integrate email and SMS testing into your continuous integration process.

  • 8.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
106K
decreased by-23.3%
Maintainers
1
Weekly downloads
 
Created

What is mailosaur?

Mailosaur is a service that allows you to test email and SMS messages by capturing them in a virtual inbox. This is particularly useful for automated testing of email and SMS functionalities in your applications.

What are mailosaur's main functionalities?

Capture Emails

This feature allows you to capture and list emails sent to a specific Mailosaur server. You can use this to verify that emails are being sent correctly during automated tests.

const MailosaurClient = require('mailosaur');
const client = new MailosaurClient('YOUR_API_KEY');

client.messages.list('SERVER_ID').then(result => {
  console.log(result.items);
});

Retrieve Email Content

This feature allows you to retrieve the content of a specific email, including the subject and body. This is useful for verifying the content of emails in your tests.

const MailosaurClient = require('mailosaur');
const client = new MailosaurClient('YOUR_API_KEY');

client.messages.get('SERVER_ID', 'EMAIL_ID').then(email => {
  console.log(email.subject);
  console.log(email.text.body);
});

Search Emails

This feature allows you to search for emails based on specific criteria, such as the recipient's email address. This can be useful for finding specific emails in a large inbox.

const MailosaurClient = require('mailosaur');
const client = new MailosaurClient('YOUR_API_KEY');

client.messages.search('SERVER_ID', { sentTo: 'test@example.com' }).then(result => {
  console.log(result.items);
});

Capture SMS

This feature allows you to capture and list SMS messages sent to a specific Mailosaur server. This is useful for testing SMS functionalities in your applications.

const MailosaurClient = require('mailosaur');
const client = new MailosaurClient('YOUR_API_KEY');

client.messages.list('SERVER_ID', { type: 'sms' }).then(result => {
  console.log(result.items);
});

Other packages similar to mailosaur

Keywords

FAQs

Package last updated on 02 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc